package com.aquan.map_jetpack.ui.screens

import androidx.compose.foundation.layout.Column
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import com.aquan.map_jetpack.compositionLocal.LocalUserViewModel
import com.aquan.map_jetpack.ui.components.TopAppBar
import com.aquan.map_jetpack.ui.components.map_component.MapViewWidget


@Composable
fun SettingScreen(onNavigateTo: () -> Unit = {}) {

    val userViewModel = LocalUserViewModel.current
    Column(
//        Modifier.padding(56.dp)
    ) {
        TopAppBar() {
            Text(text = "设置界面", color = Color(0xFFFFFFFF))
        }
        Text(text = "设置界面")

        Button(onClick = {
            userViewModel.clear()
            // 退出登录
            onNavigateTo.invoke()
        }) {
            Text(text = "退出登录")
        }
    }
}